<?php


class EmsContentTypeTable extends Doctrine_Table
{
    
    public static function getInstance()
    {
        return Doctrine_Core::getTable('EmsContentType');
    }

    public function getDefaultType(Doctrine_Query $q = null) {
        
        if (is_null($q))
        {
            $q = Doctrine_Query::create()
                ->from('EmsContentType ct');
        }
        return $q->fetchOne();
    }
}